<template>
  <el-container id="app">
    <!-- 标题栏 -->
    <el-header height="70px">
      <el-row>
        <el-col :span="20" :offset="2">My-El-Web-Proj</el-col>
        <el-col :span="2">
          <el-dropdown>
            <span style="font-size:25px;color:#fff;cursor:pointer;">
              <i class="el-icon-user-solid"></i>
            </span>
            <el-dropdown-menu slot="dropdown">
              <el-dropdown-item style="font-size:18px;">登录</el-dropdown-item>
              <el-dropdown-item style="font-size:18px;">注销</el-dropdown-item>
            </el-dropdown-menu>
          </el-dropdown>
        </el-col>
      </el-row>
    </el-header>
    <el-container style="margin-top: 15px;">
      <!-- 左侧导航 -->
      <el-aside width="250px">
        <el-menu background-color="#458b74" text-color="#fff" unique-opened="true" :default-active="this.$router.path"
          router>
          <el-submenu index="1">
            <template slot="title">
              <span style="font-size:18px;">模块A</span>
            </template>
            <el-menu-item style="font-size:16px;" index="/Work1">子模块A</el-menu-item>
            <el-menu-item style="font-size:16px;" index="/Work2">子模块B</el-menu-item>
            <el-menu-item style="font-size:16px;" index="/Work3">子模块C</el-menu-item>
          </el-submenu>
          <el-submenu index="2">
            <template slot="title">
              <span style="font-size:18px;">模块B</span>
            </template>
            <el-menu-item style="font-size:16px;">子模块A</el-menu-item>
            <el-menu-item style="font-size:16px;">子模块B</el-menu-item>
            <el-menu-item style="font-size:16px;">子模块C</el-menu-item>
          </el-submenu>
          <el-submenu index="3">
            <template slot="title">
              <span style="font-size:18px;">模块C</span>
            </template>
            <el-menu-item style="font-size:16px;">子模块A</el-menu-item>
            <el-menu-item style="font-size:16px;">子模块B</el-menu-item>
            <el-menu-item style="font-size:16px;">子模块C</el-menu-item>
          </el-submenu>
        </el-menu>
      </el-aside>
      <!-- 工作区 -->
      <el-main style="margin-top:-30px;margin-right:-40px;">
        <router-view />
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
  export default {
    name: 'App'
  }
</script>

<style>
  ::-webkit-scrollbar {
    display: none;
  }

  .el-header {
    background-color: #458b74;
    color: #fff;
    text-align: center;
    font-size: 25px;
    line-height: 60px;
    border-radius: 5px;
  }
</style>
